import { http } from '@/utils'
import { LoginForm, Token, MyAxiosPromise } from '@/types/data'

export function login(data: LoginForm): MyAxiosPromise<Token> {
  return http({
    url: '/authorizations',
    method: 'post',
    data,
  })
}
